#!/usr/bin/env python

import os
import sys

def main():
    for line in sys.stdin:
        prev_name = line.strip()
        base, number, ext = prev_name.rsplit("_", 2)
        new_name = '_'.join([base, '%.0e'%float(number), ext])
        print prev_name, '\t', new_name
        os.rename(prev_name, new_name)

main()

